<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!--WARNING: This file is maintained by ROO! IT WILL BE OVERWRITTEN unless you specify null	@RooWebScaffold(automaticallyMaintainView = false) in the governing controller-->
<jsp:directive.include file="/WEB-INF/jsp/includes.jsp"/>
<jsp:directive.include file="/WEB-INF/jsp/header.jsp"/>
<script type="text/javascript">dojo.require("dijit.TitlePane");</script>
<div dojoType="dijit.TitlePane" style="width: 100%" title="Create New Story">
    <form:form action="/yourscrum/story" method="POST" modelAttribute="story">
        <div id="roo_story_estimate">
            <label for="_estimate">Estimate:</label>
            <form:input cssStyle="width:50px" id="_estimate" maxlength="4" path="estimate" size="5"/>
            <br/>
            <form:errors cssClass="errors" id="_estimate" path="estimate"/>
            <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_estimate", widgetType : "dijit.form.NumberTextBox", widgetAttrs : {promptMessage: "Enter Estimate", invalidMessage: "", required : true}})); </script>
        </div>
        <br/>
        <div id="roo_story_description">
            <label for="_description">Description:</label>
            <form:input cssStyle="width:250px" id="_description" maxlength="30" path="description" size="0"/>
            <br/>
            <form:errors cssClass="errors" id="_description" path="description"/>
            <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_description", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Description (required)", invalidMessage: "", required : true}})); </script>
        </div>
        <br/>
        <div id="roo_story_tasks">
            <c:if test="${not empty tasks}">
                <label for="_tasks">Tasks:</label>
                <form:select cssStyle="width:250px" id="_tasks" path="tasks">
                    <form:options itemValue="id" items="${tasks}" itemLabel="description"/>
                </form:select>
                <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_tasks", widgetType: "dijit.form.MultiSelect"})); </script>
            </c:if>
        </div>
        <br/>
        <div id="roo_story_theme">
            <c:if test="${not empty themes}">
                <label for="_theme">Theme:</label>
                <form:select cssStyle="width:250px" id="_theme" path="theme">
                    <form:options itemValue="id" items="${themes}" itemLabel="title"/>
                </form:select>
                <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_theme", widgetType: "dijit.form.FilteringSelect", widgetAttrs : {hasDownArrow : true}})); </script>
            </c:if>
        </div>
        <br/>
        <div id="roo_story_comment">
            <c:if test="${not empty comments}">
                <label for="_comments">Comment:</label>
                <form:select cssStyle="width:250px" id="_comments" path="comments">
                    <form:options itemValue="id" items="${comments}" itemLabel="name"/>
                </form:select>
                <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "_comments", widgetType: "dijit.form.MultiSelect"})); </script>
            </c:if>
        </div>
        <br/>

        <div class="submit" id="roo_story_submit">
            <script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
            <input id="proceed" type="submit" value="Save"/>
        </div>
    </form:form>
</div>
<jsp:directive.include file="/WEB-INF/jsp/footer.jsp"/>
